package com.wzh.other;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.lang.Dict;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @description:
 * @author: WZH
 * @time: 2021/11/1 14:38
 */
public class Demo3 {


    public static void main(String[] args) {


        ArrayList<List<Integer>> list = new ArrayList<>();

        for (int i = 0; i < 10; i++) {


            ArrayList<Integer> list1 = new ArrayList<>();
            for (int j = 10; j > 0; j--) {
                list1.add(i*10+j);
            }

            list.add(list1);
        }

        list.forEach(System.out::println);

        List<Integer> collect = list.stream().flatMap(Collection::stream).collect(Collectors.toList());

        System.out.println(collect.size());

        Dict dict = Dict.create();

        boolean bean = BeanUtil.isBean(list.getClass());

        System.out.println(bean);



    }
}
